home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / INS_MSG.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  48 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   INS_MSG .DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. $INCLUDE "DAS-NB01.INC"
  19. $INCLUDE "DAS-NBT1.INC"
  20. $INCLUDE "KEYCODES.INC"
  21.  
  22. COLOR 7, 0
  23. CLS
  24. ? "┌────────────────────────────────────────────────────────────────────────
  25. ? "│  SetINSERTmsg ( OnMsg$, OffMsg$, Row?, Col? )
  26. ? "│ fINSERTmsg%   ()
  27. ? "├─────────────────────────────────────────────────────────────────────────────
  28. ? "│ Once you have set the local variables by calling SetINSERTmsg each successive
  29. ? "│ call to fINSERTmsg will print the appropriate message to the screen at the
  30. ? "│ given address after checking the current state of the <INS> key. If it is on
  31. ? "│ the function will return a TRUE value.
  32. ? "│ NOTE: the color attribute(s) for the messages should be embedded in the
  33. ? "│       message strings else the screen's attribute will be used.
  34. ? "└─────────────────────────────────────────────────────────────────────────────
  35.  
  36. OnMsg$  = " INSERT ON  "
  37. OffMsg$ = " INSERT OFF "
  38. Tprint 25, 62, "PRESS <îESC> TO END", 14
  39. SetINSERTmsg OnMsg$, OffMsg$, 25, 1
  40. InsertOn% = fINSERTmsg%
  41.  
  42. Tprint 15, 23, "PRESS <ÄINS > TO ACTIVATE THE MESSAGE.", 11
  43. DO
  44.   G% = fAnyKey%
  45.   IF G% = %INS_key THEN InsertOn% = fINSERTmsg%
  46. LOOP UNTIL G% = %ESC_key
  47. CLS
  48.